// Copyright (c) 2002-2005 Cunningham & Cunningham, Inc.
// Released under the terms of the GNU General Public License version 2 or later.

using System;

namespace fit
{
	public class Counts
	{
		public int right = 0;
		public int wrong = 0;
		public int ignores = 0;
		public int exceptions = 0;

		public override String ToString() 
		{
			return
				right + " right, " +
				wrong + " wrong, " +
				ignores + " ignored, " +
				exceptions + " exceptions";
		}

		public void tally(Counts source) 
		{
			right += source.right;
			wrong += source.wrong;
			ignores += source.ignores;
			exceptions += source.exceptions;
		}
	}
}
